package cn.ffcs.uec.outStaff.manager.impl;

import java.io.InputStream;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.uec.outStaff.dao.UecOutStaffDao;
import cn.ffcs.uec.outStaff.manager.UecOutStaffManager;
import cn.ffcs.uec.outStaff.model.PictureTable;
import cn.ffcs.uec.outStaff.model.UecOutStaffCostB;
import cn.ffcs.uec.outStaff.model.UecOutStaffCostH;
import cn.ffcs.uec.outStaff.model.UecOutStaffInfo;
import cn.ffcs.uec.outStaff.model.UecOutStaffWork;
import cn.ffcs.uec.outStaff.vo.UecOutStaffInfoVo;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("uecOutStaffManager")
@Scope("prototype")
public class UecOutStaffManagerImpl implements UecOutStaffManager {

	@Resource
	private UecOutStaffDao uecOutStaffDao;


	public UecOutStaffInfo findUecOutStaffInfo(UecOutStaffInfo uecOutStaffInfo){
		return uecOutStaffDao.findUecOutStaffInfo(uecOutStaffInfo);
	}
	@Override
	public List<UecOutStaffInfo> findUecOutStaffInfoList(UecOutStaffInfo uecOutStaffInfo){
		return uecOutStaffDao.findUecOutStaffInfoList(uecOutStaffInfo);
	};

	@Override
	public String addUecOutStaffInfo(UecOutStaffInfo uecOutStaffInfo) {
		if (uecOutStaffDao.findUecOutStaffInfo(uecOutStaffInfo) != null) {
			return "haved";
		}else {
			uecOutStaffDao.addUecOutStaffInfo(uecOutStaffInfo);
			return "add";
		}
	}


	@Override
	public PageInfo findUecOutStaffWork(UecOutStaffInfo uecOutStaffInfo, int current,
			int pageSize) {
		return uecOutStaffDao.findUecOutStaffWork(uecOutStaffInfo,current,pageSize);
	}


	@Override
	public PageInfo queryPageInfoByUecOutStaffInfo(UecOutStaffInfo uecOutStaffInfo, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffInfo(uecOutStaffInfo, current, pageSize);
	}
	
	@Override
	public PageInfo queryPageInfoByUecOutStaffInfoVo(UecOutStaffInfoVo uecOutStaffInfoVo, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffInfoVo(uecOutStaffInfoVo, current, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByUecOutStaffCostB(UecOutStaffWork uecOutStaffWork, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffCostB(uecOutStaffWork, current, pageSize);
	}


	@Override
	public UecOutStaffWork findUecOutStaffWork(UecOutStaffInfo uecOutStaffInfo) {
		return uecOutStaffDao.findUecOutStaffWork(uecOutStaffInfo);
	}


	@Override
	public List<UecOutStaffWork> queryUecOutStaffWork(UecOutStaffInfo uecOutStaffInfo) {
		return uecOutStaffDao.queryUecOutStaffWork(uecOutStaffInfo);
	}


	@Override
	public PageInfo queryPageInfoByUecOutStaffVocqua(UecOutStaffInfo uecOutStaffInfo, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffVocqua(uecOutStaffInfo, current, pageSize);
	}


	@Override
	public PageInfo queryPageInfoByUecOutStaffTramsg(UecOutStaffInfo uecOutStaffInfo, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffTramsg(uecOutStaffInfo, current, pageSize);
	}


	@Override
	public PageInfo queryPageInfoByUecOutStaffCostH(UecOutStaffCostB uecOutStaffCostB, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffCostH(uecOutStaffCostB, current, pageSize);
	}


	@Override
	public PageInfo queryPageInfoByUecOutStaffManage(UecOutStaffCostH uecOutStaffCostH, int current, int pageSize) {
		return uecOutStaffDao.queryPageInfoByUecOutStaffManage(uecOutStaffCostH, current, pageSize);
	}


	@Override
	public UecOutStaffInfo findUecOutStaffInfoById(
			UecOutStaffInfo uecOutStaffInfo) {
		return uecOutStaffDao.findUecOutStaffInfoById(uecOutStaffInfo);
	}


	@Override
	public UecOutStaffInfo findUecOutStaffInfoOnApproval(
			UecOutStaffInfo uecOutStaffInfo) {
		return uecOutStaffDao.findUecOutStaffInfoOnApproval(uecOutStaffInfo);
	}


	@Override
	public UecOutStaffInfo findUecOutStaffInfoByOutStaffId(
			UecOutStaffInfo uecOutStaffInfo) {
		return uecOutStaffDao.findUecOutStaffInfoByOutStaffId(uecOutStaffInfo);
	}


    @Override
    public PictureTable isExitPictureTable(PictureTable pictureTable) {
        return uecOutStaffDao.isExitPictureTable(pictureTable);
    }


    @Override
    public PictureTable getPicture(String StaffCode, String picType) {
        return uecOutStaffDao.getPicture(StaffCode, picType);
    }


    @Override
    public byte[] getPictureInputStream(String StaffCode, String picType) {
        return uecOutStaffDao.getPictureInputStream(StaffCode, picType);
    }




}
